package com.bdqn.rabbitmqporducer1.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@RabbitListener(queues = "fanout.Second")
public class FanoutReceiverSecond {
    @RabbitHandler
    public void process(Map MyMessage) {
        System.out.println("消费者FanoutReceiverSecond收到消息：" + MyMessage);
    }
}
